#ifndef SVGHELPER_H
#define SVGHELPER_H

#include <QObject>
#include <QPixmap>

class SvgHelper : public QObject
{
    Q_OBJECT
public:
    explicit SvgHelper(QObject *parent = nullptr);

    //获取指定图形字体,可以指定文字大小,图片宽高,文字对齐
    static QPixmap getPixmap(const QString &svgName, const QColor &color, quint32 size = 12,
                             quint32 width = 15, quint32 height = 15);

signals:
};

#endif // SVGHELPER_H
